<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<%@ include file="/commons/head.jsp" %>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <%@ include file="/commons/left.jsp" %>
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                聊天内容列表
            </h1>
            <section class="content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="box">
                            <div class="box-header">
                                <form name="searchForm" id="searchForm" action="${ctx}/friend/listFriendUrl"
                                      method="get">
                                    <input type="hidden" id="pageNum" name="pageNum" value="1"/>
                                    <input type="hidden" id="length" name="length" value="10"/>
                                    <div class="input_box">
                                        <label  style=" float: left; height: 34px; line-height: 34px;">说话者：</label>
                                        <div class="input lang" style="float: left;" class="form-control" >
                                            <input type="text" class="form-control" name="spackName" placeholder="说话者">
                                        </div>
                                    </div>
                                    <div class="input_btn" style=" float: left;">
                                        <input type="submit" class="btn btn-default" value="查询">
                                    </div>
                                </form>
                            </div>
                            <div class="box-body">
                                <table id="example2" class="table table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th>聊天室主键</th>
                                        <th>聊天内容</th>
                                        <th>说话者</th>
                                        <th>说话时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <c:choose>
                                        <c:when test="${page.maxRow>0}">
                                            <c:forEach var="item" items="${listChatcontent}" varStatus="vs">
                                                <tr>
                                                    <td>${item.chatroomId}</td>
                                                    <td>${item.chatContent}</td>
                                                    <td>${item.speakId}</td>
                                                    <td>
                                                        <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${item.speakTime}"></fmt:formatDate></td>
                                                </tr>
                                            </c:forEach>
                                        </c:when>
                                    </c:choose>
                                    </tbody>
                                </table>
                                <div>
                                    <jsp:include page="/commons/pagination.jsp"/>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </section>

    </div>
    <%@ include file="/commons/script.jsp" %>
</body>
</html>a



